<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="科室" prop="department">
        <el-input
          v-model="queryParams.department"
          placeholder="请输入科室"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="床号" prop="bedNumber">
        <el-input
          v-model="queryParams.bedNumber"
          placeholder="请输入床号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="患者姓名" prop="patientName">
        <el-input
          v-model="queryParams.patientName"
          placeholder="请输入患者姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="住院号" prop="hospitalNumber">
        <el-input
          v-model="queryParams.hospitalNumber"
          placeholder="请输入住院号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="性别" prop="gender">
        <el-input
          v-model="queryParams.gender"
          placeholder="请输入性别"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="年龄" prop="age">
        <el-input
          v-model="queryParams.age"
          placeholder="请输入年龄"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="民族" prop="ethnicity">
        <el-input
          v-model="queryParams.ethnicity"
          placeholder="请输入民族"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="文化程度" prop="educationLevel">
        <el-input
          v-model="queryParams.educationLevel"
          placeholder="请输入文化程度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="肺功能测试号或测试日期" prop="pulmonaryTestNumber">
        <el-input
          v-model="queryParams.pulmonaryTestNumber"
          placeholder="请输入肺功能测试号或测试日期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="电话号码" prop="phoneNumber">
        <el-input
          v-model="queryParams.phoneNumber"
          placeholder="请输入电话号码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="现地址" prop="currentAddress">
        <el-input
          v-model="queryParams.currentAddress"
          placeholder="请输入现地址"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="身高" prop="height">
        <el-input
          v-model="queryParams.height"
          placeholder="请输入身高"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="体重" prop="weight">
        <el-input
          v-model="queryParams.weight"
          placeholder="请输入体重"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="BMI指数=体重/(身高*身高)" prop="bmi">
        <el-input
          v-model="queryParams.bmi"
          placeholder="请输入BMI指数=体重/(身高*身高)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="分期(正常、PRISm、COPD稳定期、COPD急性加重期)" prop="diseaseStage">
        <el-input
          v-model="queryParams.diseaseStage"
          placeholder="请输入分期(正常、PRISm、COPD稳定期、COPD急性加重期)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="吸烟详情" prop="smokingDetails">
        <el-input
          v-model="queryParams.smokingDetails"
          placeholder="请输入吸烟详情"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="职业" prop="occupation">
        <el-input
          v-model="queryParams.occupation"
          placeholder="请输入职业"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="住院费用" prop="hospitalizationCost">
        <el-input
          v-model="queryParams.hospitalizationCost"
          placeholder="请输入住院费用"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="住院天数" prop="hospitalizationDays">
        <el-input
          v-model="queryParams.hospitalizationDays"
          placeholder="请输入住院天数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="收缩压" prop="systolicPressure">
        <el-input
          v-model="queryParams.systolicPressure"
          placeholder="请输入收缩压"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="舒张压" prop="diastolicPressure">
        <el-input
          v-model="queryParams.diastolicPressure"
          placeholder="请输入舒张压"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="脉搏" prop="pulseRate">
        <el-input
          v-model="queryParams.pulseRate"
          placeholder="请输入脉搏"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="呼吸" prop="respiratoryRate">
        <el-input
          v-model="queryParams.respiratoryRate"
          placeholder="请输入呼吸"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="体温" prop="bodyTemperature">
        <el-input
          v-model="queryParams.bodyTemperature"
          placeholder="请输入体温"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="血糖" prop="bloodGlucose">
        <el-input
          v-model="queryParams.bloodGlucose"
          placeholder="请输入血糖"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="PH值" prop="ph">
        <el-input
          v-model="queryParams.ph"
          placeholder="请输入PH值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="PaCO2" prop="paco2">
        <el-input
          v-model="queryParams.paco2"
          placeholder="请输入PaCO2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="PaO2" prop="pao2">
        <el-input
          v-model="queryParams.pao2"
          placeholder="请输入PaO2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="HCO3-" prop="hco3">
        <el-input
          v-model="queryParams.hco3"
          placeholder="请输入HCO3-"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="BE" prop="be">
        <el-input
          v-model="queryParams.be"
          placeholder="请输入BE"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="吸氧浓度" prop="oxygenConcentration">
        <el-input
          v-model="queryParams.oxygenConcentration"
          placeholder="请输入吸氧浓度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="白细胞" prop="wbc">
        <el-input
          v-model="queryParams.wbc"
          placeholder="请输入白细胞"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="红细胞" prop="rbc">
        <el-input
          v-model="queryParams.rbc"
          placeholder="请输入红细胞"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="血红蛋白" prop="hemoglobin">
        <el-input
          v-model="queryParams.hemoglobin"
          placeholder="请输入血红蛋白"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="血小板" prop="platelets">
        <el-input
          v-model="queryParams.platelets"
          placeholder="请输入血小板"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="淋巴细胞百分数" prop="lymphocytePercentage">
        <el-input
          v-model="queryParams.lymphocytePercentage"
          placeholder="请输入淋巴细胞百分数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="单核细胞百分数" prop="monocytePercentage">
        <el-input
          v-model="queryParams.monocytePercentage"
          placeholder="请输入单核细胞百分数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="嗜中性粒细胞百分数" prop="neutrophilPercentage">
        <el-input
          v-model="queryParams.neutrophilPercentage"
          placeholder="请输入嗜中性粒细胞百分数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="嗜酸性粒细胞百分数" prop="eosinophilPercentage">
        <el-input
          v-model="queryParams.eosinophilPercentage"
          placeholder="请输入嗜酸性粒细胞百分数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="淋巴细胞绝对值" prop="lymphocyteAbsolute">
        <el-input
          v-model="queryParams.lymphocyteAbsolute"
          placeholder="请输入淋巴细胞绝对值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="单核细胞绝对值" prop="monocyteAbsolute">
        <el-input
          v-model="queryParams.monocyteAbsolute"
          placeholder="请输入单核细胞绝对值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="嗜中性粒细胞绝对值" prop="neutrophilAbsolute">
        <el-input
          v-model="queryParams.neutrophilAbsolute"
          placeholder="请输入嗜中性粒细胞绝对值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="嗜酸性粒细胞绝对值" prop="eosinophilAbsolute">
        <el-input
          v-model="queryParams.eosinophilAbsolute"
          placeholder="请输入嗜酸性粒细胞绝对值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="高密度脂蛋白胆固醇" prop="hdl">
        <el-input
          v-model="queryParams.hdl"
          placeholder="请输入高密度脂蛋白胆固醇"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="低密度脂蛋白胆固醇" prop="ldl">
        <el-input
          v-model="queryParams.ldl"
          placeholder="请输入低密度脂蛋白胆固醇"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="总胆固醇" prop="totalCholesterol">
        <el-input
          v-model="queryParams.totalCholesterol"
          placeholder="请输入总胆固醇"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="甘油三酯" prop="triglycerides">
        <el-input
          v-model="queryParams.triglycerides"
          placeholder="请输入甘油三酯"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="肌酸激酶" prop="creatineKinase">
        <el-input
          v-model="queryParams.creatineKinase"
          placeholder="请输入肌酸激酶"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="肌酸激酶同工酶" prop="ckMb">
        <el-input
          v-model="queryParams.ckMb"
          placeholder="请输入肌酸激酶同工酶"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="乳酸脱氢酶" prop="ldh">
        <el-input
          v-model="queryParams.ldh"
          placeholder="请输入乳酸脱氢酶"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="α-羟丁酸脱氢酶" prop="hbdh">
        <el-input
          v-model="queryParams.hbdh"
          placeholder="请输入α-羟丁酸脱氢酶"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="高敏肌钙蛋白Ⅰ" prop="troponin">
        <el-input
          v-model="queryParams.troponin"
          placeholder="请输入高敏肌钙蛋白Ⅰ"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="肌酐" prop="creatinine">
        <el-input
          v-model="queryParams.creatinine"
          placeholder="请输入肌酐"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="尿酸" prop="uricAcid">
        <el-input
          v-model="queryParams.uricAcid"
          placeholder="请输入尿酸"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="尿素" prop="urea">
        <el-input
          v-model="queryParams.urea"
          placeholder="请输入尿素"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="胱抑素C" prop="cystatinC">
        <el-input
          v-model="queryParams.cystatinC"
          placeholder="请输入胱抑素C"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="肾小球滤过率" prop="gfr">
        <el-input
          v-model="queryParams.gfr"
          placeholder="请输入肾小球滤过率"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="天门冬氨酸氨基转移酶" prop="ast">
        <el-input
          v-model="queryParams.ast"
          placeholder="请输入天门冬氨酸氨基转移酶"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="丙氨酸氨基转移酶" prop="alt">
        <el-input
          v-model="queryParams.alt"
          placeholder="请输入丙氨酸氨基转移酶"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="总胆红素" prop="totalBilirubin">
        <el-input
          v-model="queryParams.totalBilirubin"
          placeholder="请输入总胆红素"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="总蛋白" prop="totalProtein">
        <el-input
          v-model="queryParams.totalProtein"
          placeholder="请输入总蛋白"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="白蛋白" prop="albumin">
        <el-input
          v-model="queryParams.albumin"
          placeholder="请输入白蛋白"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="白介素-6" prop="il6">
        <el-input
          v-model="queryParams.il6"
          placeholder="请输入白介素-6"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="降钙素" prop="calcitonin">
        <el-input
          v-model="queryParams.calcitonin"
          placeholder="请输入降钙素"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="BNP" prop="bnp">
        <el-input
          v-model="queryParams.bnp"
          placeholder="请输入BNP"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="C-反应蛋白" prop="crp">
        <el-input
          v-model="queryParams.crp"
          placeholder="请输入C-反应蛋白"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="血沉" prop="esr">
        <el-input
          v-model="queryParams.esr"
          placeholder="请输入血沉"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="凝血酶原时间" prop="pt">
        <el-input
          v-model="queryParams.pt"
          placeholder="请输入凝血酶原时间"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="活化部分凝血酶原时间" prop="aptt">
        <el-input
          v-model="queryParams.aptt"
          placeholder="请输入活化部分凝血酶原时间"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="凝血酶时间" prop="tt">
        <el-input
          v-model="queryParams.tt"
          placeholder="请输入凝血酶时间"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="国际标准化比值" prop="inr">
        <el-input
          v-model="queryParams.inr"
          placeholder="请输入国际标准化比值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="纤维蛋白原" prop="fibrinogen">
        <el-input
          v-model="queryParams.fibrinogen"
          placeholder="请输入纤维蛋白原"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="D-二聚体" prop="dDimer">
        <el-input
          v-model="queryParams.dDimer"
          placeholder="请输入D-二聚体"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="呼吸困难量表评分" prop="mmrcScore">
        <el-input
          v-model="queryParams.mmrcScore"
          placeholder="请输入呼吸困难量表评分"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="日常生活量表评分" prop="dailyLivingScore">
        <el-input
          v-model="queryParams.dailyLivingScore"
          placeholder="请输入日常生活量表评分"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="日常生活量表名称" prop="dailyLivingScale">
        <el-input
          v-model="queryParams.dailyLivingScale"
          placeholder="请输入日常生活量表名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="跌倒风险评分" prop="fallRiskScore">
        <el-input
          v-model="queryParams.fallRiskScore"
          placeholder="请输入跌倒风险评分"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="跌倒评分表名称" prop="fallRiskScale">
        <el-input
          v-model="queryParams.fallRiskScale"
          placeholder="请输入跌倒评分表名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="压疮风险评分" prop="pressureUlcerScore">
        <el-input
          v-model="queryParams.pressureUlcerScore"
          placeholder="请输入压疮风险评分"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="压疮评分表名称" prop="pressureUlcerScale">
        <el-input
          v-model="queryParams.pressureUlcerScale"
          placeholder="请输入压疮评分表名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="FEV1舒张前" prop="fev1Pre">
        <el-input
          v-model="queryParams.fev1Pre"
          placeholder="请输入FEV1舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="FEV1舒张前" prop="fev1PrePercent">
        <el-input
          v-model="queryParams.fev1PrePercent"
          placeholder="请输入FEV1舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="FVC舒张前" prop="fvcPre">
        <el-input
          v-model="queryParams.fvcPre"
          placeholder="请输入FVC舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="FVC舒张前" prop="fvcPrePercent">
        <el-input
          v-model="queryParams.fvcPrePercent"
          placeholder="请输入FVC舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="FEV1/FVC舒张前" prop="fev1FvcRatioPre">
        <el-input
          v-model="queryParams.fev1FvcRatioPre"
          placeholder="请输入FEV1/FVC舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="FEV1/FVC舒张前" prop="fev1FvcRatioPrePercent">
        <el-input
          v-model="queryParams.fev1FvcRatioPrePercent"
          placeholder="请输入FEV1/FVC舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="FEV1舒张后" prop="fev1Post">
        <el-input
          v-model="queryParams.fev1Post"
          placeholder="请输入FEV1舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="FEV1舒张后" prop="fev1PostPercent">
        <el-input
          v-model="queryParams.fev1PostPercent"
          placeholder="请输入FEV1舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="FVC舒张后" prop="fvcPost">
        <el-input
          v-model="queryParams.fvcPost"
          placeholder="请输入FVC舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="FVC舒张后" prop="fvcPostPercent">
        <el-input
          v-model="queryParams.fvcPostPercent"
          placeholder="请输入FVC舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="FEV1/FVC舒张后" prop="fev1FvcRatioPost">
        <el-input
          v-model="queryParams.fev1FvcRatioPost"
          placeholder="请输入FEV1/FVC舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="FEV1/FVC舒张后" prop="fev1FvcRatioPostPercent">
        <el-input
          v-model="queryParams.fev1FvcRatioPostPercent"
          placeholder="请输入FEV1/FVC舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="FVC改善率" prop="fvcImprovement">
        <el-input
          v-model="queryParams.fvcImprovement"
          placeholder="请输入FVC改善率"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="FEV1改善率" prop="fev1Improvement">
        <el-input
          v-model="queryParams.fev1Improvement"
          placeholder="请输入FEV1改善率"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="PEF舒张前" prop="pefPre">
        <el-input
          v-model="queryParams.pefPre"
          placeholder="请输入PEF舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="MMEF75/25舒张前" prop="mmef7525Pre">
        <el-input
          v-model="queryParams.mmef7525Pre"
          placeholder="请输入MMEF75/25舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="MEF75舒张前" prop="mef75Pre">
        <el-input
          v-model="queryParams.mef75Pre"
          placeholder="请输入MEF75舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="MEF50舒张前" prop="mef50Pre">
        <el-input
          v-model="queryParams.mef50Pre"
          placeholder="请输入MEF50舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="MEF25舒张前" prop="mef25Pre">
        <el-input
          v-model="queryParams.mef25Pre"
          placeholder="请输入MEF25舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="PEF舒张后" prop="pefPost">
        <el-input
          v-model="queryParams.pefPost"
          placeholder="请输入PEF舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="MMEF75/25舒张后" prop="mmef7525Post">
        <el-input
          v-model="queryParams.mmef7525Post"
          placeholder="请输入MMEF75/25舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="MEF75舒张后" prop="mef75Post">
        <el-input
          v-model="queryParams.mef75Post"
          placeholder="请输入MEF75舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="MEF50舒张后" prop="mef50Post">
        <el-input
          v-model="queryParams.mef50Post"
          placeholder="请输入MEF50舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="MEF25舒张后" prop="mef25Post">
        <el-input
          v-model="queryParams.mef25Post"
          placeholder="请输入MEF25舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="弥散功能DLCO-SB" prop="dlcoSbPercent">
        <el-input
          v-model="queryParams.dlcoSbPercent"
          placeholder="请输入弥散功能DLCO-SB"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="肺总量TLC-SB" prop="tlcSbPercent">
        <el-input
          v-model="queryParams.tlcSbPercent"
          placeholder="请输入肺总量TLC-SB"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="残气RV-SB" prop="rvSbPercent">
        <el-input
          v-model="queryParams.rvSbPercent"
          placeholder="请输入残气RV-SB"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="Z5舒张前" prop="z5Pre">
        <el-input
          v-model="queryParams.z5Pre"
          placeholder="请输入Z5舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="R5舒张前" prop="r5Pre">
        <el-input
          v-model="queryParams.r5Pre"
          placeholder="请输入R5舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="R20舒张前" prop="r20Pre">
        <el-input
          v-model="queryParams.r20Pre"
          placeholder="请输入R20舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="X5舒张前" prop="x5Pre">
        <el-input
          v-model="queryParams.x5Pre"
          placeholder="请输入X5舒张前"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="共振频率" prop="resonantFrequency">
        <el-input
          v-model="queryParams.resonantFrequency"
          placeholder="请输入共振频率"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="Z5舒张后" prop="z5Post">
        <el-input
          v-model="queryParams.z5Post"
          placeholder="请输入Z5舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="R5舒张后" prop="r5Post">
        <el-input
          v-model="queryParams.r5Post"
          placeholder="请输入R5舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="R20舒张后" prop="r20Post">
        <el-input
          v-model="queryParams.r20Post"
          placeholder="请输入R20舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="X5舒张后" prop="x5Post">
        <el-input
          v-model="queryParams.x5Post"
          placeholder="请输入X5舒张后"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="创建人姓名" prop="createdBy">
        <el-input
          v-model="queryParams.createdBy"
          placeholder="请输入创建人姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="创建人部门" prop="creatorDepartment">
        <el-input
          v-model="queryParams.creatorDepartment"
          placeholder="请输入创建人部门"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="创建时间" prop="createdAt">
        <el-date-picker clearable
          v-model="queryParams.createdAt"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择创建时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="更新时间" prop="updatedAt">
        <el-date-picker clearable
          v-model="queryParams.updatedAt"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择更新时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="最后更新人姓名" prop="updatedBy">
        <el-input
          v-model="queryParams.updatedBy"
          placeholder="请输入最后更新人姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="用户ID" prop="userId">
        <el-input
          v-model="queryParams.userId"
          placeholder="请输入用户ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="部门ID" prop="deptId">
        <el-input
          v-model="queryParams.deptId"
          placeholder="请输入部门ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['hospital:hospital_data:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['hospital:hospital_data:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['hospital:hospital_data:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['hospital:hospital_data:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="hospital_dataList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="主键ID" align="center" prop="id" />
      <el-table-column label="科室" align="center" prop="department" />
      <el-table-column label="床号" align="center" prop="bedNumber" />
      <el-table-column label="患者姓名" align="center" prop="patientName" />
      <el-table-column label="住院号" align="center" prop="hospitalNumber" />
      <el-table-column label="性别" align="center" prop="gender" />
      <el-table-column label="年龄" align="center" prop="age" />
      <el-table-column label="民族" align="center" prop="ethnicity" />
      <el-table-column label="文化程度" align="center" prop="educationLevel" />
      <el-table-column label="肺功能测试号或测试日期" align="center" prop="pulmonaryTestNumber" />
      <el-table-column label="电话号码" align="center" prop="phoneNumber" />
      <el-table-column label="现地址" align="center" prop="currentAddress" />
      <el-table-column label="身高" align="center" prop="height" />
      <el-table-column label="体重" align="center" prop="weight" />
      <el-table-column label="BMI指数=体重/(身高*身高)" align="center" prop="bmi" />
      <el-table-column label="分期(正常、PRISm、COPD稳定期、COPD急性加重期)" align="center" prop="diseaseStage" />
      <el-table-column label="吸烟状况：曾经" align="center" prop="smokingStatus" />
      <el-table-column label="吸烟详情" align="center" prop="smokingDetails" />
      <el-table-column label="饮酒史：曾经" align="center" prop="drinkingStatus" />
      <el-table-column label="家族史" align="center" prop="familyHistory" />
      <el-table-column label="职业" align="center" prop="occupation" />
      <el-table-column label="既往史" align="center" prop="medicalHistory" />
      <el-table-column label="入院诊断" align="center" prop="admissionDiagnosis" />
      <el-table-column label="出院诊断" align="center" prop="dischargeDiagnosis" />
      <el-table-column label="住院费用" align="center" prop="hospitalizationCost" />
      <el-table-column label="住院天数" align="center" prop="hospitalizationDays" />
      <el-table-column label="症状" align="center" prop="symptoms" />
      <el-table-column label="过敏史" align="center" prop="allergyHistory" />
      <el-table-column label="收缩压" align="center" prop="systolicPressure" />
      <el-table-column label="舒张压" align="center" prop="diastolicPressure" />
      <el-table-column label="脉搏" align="center" prop="pulseRate" />
      <el-table-column label="呼吸" align="center" prop="respiratoryRate" />
      <el-table-column label="体温" align="center" prop="bodyTemperature" />
      <el-table-column label="血糖" align="center" prop="bloodGlucose" />
      <el-table-column label="抗生素治疗" align="center" prop="antibiotics" />
      <el-table-column label="雾化用药" align="center" prop="nebulizationDrugs" />
      <el-table-column label="胸部CT结果" align="center" prop="chestCt" />
      <el-table-column label="肝、胆、胰、脾等彩超结果" align="center" prop="ultrasoundResults" />
      <el-table-column label="心脏彩超结果" align="center" prop="cardiacUltrasound" />
      <el-table-column label="心电图结果" align="center" prop="ecgResults" />
      <el-table-column label="其他检查结果" align="center" prop="otherExaminations" />
      <el-table-column label="PH值" align="center" prop="ph" />
      <el-table-column label="PaCO2" align="center" prop="paco2" />
      <el-table-column label="PaO2" align="center" prop="pao2" />
      <el-table-column label="HCO3-" align="center" prop="hco3" />
      <el-table-column label="BE" align="center" prop="be" />
      <el-table-column label="吸氧浓度" align="center" prop="oxygenConcentration" />
      <el-table-column label="白细胞" align="center" prop="wbc" />
      <el-table-column label="红细胞" align="center" prop="rbc" />
      <el-table-column label="血红蛋白" align="center" prop="hemoglobin" />
      <el-table-column label="血小板" align="center" prop="platelets" />
      <el-table-column label="淋巴细胞百分数" align="center" prop="lymphocytePercentage" />
      <el-table-column label="单核细胞百分数" align="center" prop="monocytePercentage" />
      <el-table-column label="嗜中性粒细胞百分数" align="center" prop="neutrophilPercentage" />
      <el-table-column label="嗜酸性粒细胞百分数" align="center" prop="eosinophilPercentage" />
      <el-table-column label="淋巴细胞绝对值" align="center" prop="lymphocyteAbsolute" />
      <el-table-column label="单核细胞绝对值" align="center" prop="monocyteAbsolute" />
      <el-table-column label="嗜中性粒细胞绝对值" align="center" prop="neutrophilAbsolute" />
      <el-table-column label="嗜酸性粒细胞绝对值" align="center" prop="eosinophilAbsolute" />
      <el-table-column label="高密度脂蛋白胆固醇" align="center" prop="hdl" />
      <el-table-column label="低密度脂蛋白胆固醇" align="center" prop="ldl" />
      <el-table-column label="总胆固醇" align="center" prop="totalCholesterol" />
      <el-table-column label="甘油三酯" align="center" prop="triglycerides" />
      <el-table-column label="肌酸激酶" align="center" prop="creatineKinase" />
      <el-table-column label="肌酸激酶同工酶" align="center" prop="ckMb" />
      <el-table-column label="乳酸脱氢酶" align="center" prop="ldh" />
      <el-table-column label="α-羟丁酸脱氢酶" align="center" prop="hbdh" />
      <el-table-column label="高敏肌钙蛋白Ⅰ" align="center" prop="troponin" />
      <el-table-column label="肌酐" align="center" prop="creatinine" />
      <el-table-column label="尿酸" align="center" prop="uricAcid" />
      <el-table-column label="尿素" align="center" prop="urea" />
      <el-table-column label="胱抑素C" align="center" prop="cystatinC" />
      <el-table-column label="肾小球滤过率" align="center" prop="gfr" />
      <el-table-column label="天门冬氨酸氨基转移酶" align="center" prop="ast" />
      <el-table-column label="丙氨酸氨基转移酶" align="center" prop="alt" />
      <el-table-column label="总胆红素" align="center" prop="totalBilirubin" />
      <el-table-column label="总蛋白" align="center" prop="totalProtein" />
      <el-table-column label="白蛋白" align="center" prop="albumin" />
      <el-table-column label="白介素-6" align="center" prop="il6" />
      <el-table-column label="降钙素" align="center" prop="calcitonin" />
      <el-table-column label="BNP" align="center" prop="bnp" />
      <el-table-column label="C-反应蛋白" align="center" prop="crp" />
      <el-table-column label="血沉" align="center" prop="esr" />
      <el-table-column label="凝血酶原时间" align="center" prop="pt" />
      <el-table-column label="活化部分凝血酶原时间" align="center" prop="aptt" />
      <el-table-column label="凝血酶时间" align="center" prop="tt" />
      <el-table-column label="国际标准化比值" align="center" prop="inr" />
      <el-table-column label="纤维蛋白原" align="center" prop="fibrinogen" />
      <el-table-column label="D-二聚体" align="center" prop="dDimer" />
      <el-table-column label="痰培养结果" align="center" prop="sputumCulture" />
      <el-table-column label="病理检查结果" align="center" prop="pathologyExamination" />
      <el-table-column label="呼吸困难量表评分" align="center" prop="mmrcScore" />
      <el-table-column label="日常生活量表评分" align="center" prop="dailyLivingScore" />
      <el-table-column label="日常生活量表名称" align="center" prop="dailyLivingScale" />
      <el-table-column label="跌倒风险评分" align="center" prop="fallRiskScore" />
      <el-table-column label="跌倒评分表名称" align="center" prop="fallRiskScale" />
      <el-table-column label="压疮风险评分" align="center" prop="pressureUlcerScore" />
      <el-table-column label="压疮评分表名称" align="center" prop="pressureUlcerScale" />
      <el-table-column label="FEV1舒张前" align="center" prop="fev1Pre" />
      <el-table-column label="FEV1舒张前" align="center" prop="fev1PrePercent" />
      <el-table-column label="FVC舒张前" align="center" prop="fvcPre" />
      <el-table-column label="FVC舒张前" align="center" prop="fvcPrePercent" />
      <el-table-column label="FEV1/FVC舒张前" align="center" prop="fev1FvcRatioPre" />
      <el-table-column label="FEV1/FVC舒张前" align="center" prop="fev1FvcRatioPrePercent" />
      <el-table-column label="FEV1舒张后" align="center" prop="fev1Post" />
      <el-table-column label="FEV1舒张后" align="center" prop="fev1PostPercent" />
      <el-table-column label="FVC舒张后" align="center" prop="fvcPost" />
      <el-table-column label="FVC舒张后" align="center" prop="fvcPostPercent" />
      <el-table-column label="FEV1/FVC舒张后" align="center" prop="fev1FvcRatioPost" />
      <el-table-column label="FEV1/FVC舒张后" align="center" prop="fev1FvcRatioPostPercent" />
      <el-table-column label="FVC改善率" align="center" prop="fvcImprovement" />
      <el-table-column label="FEV1改善率" align="center" prop="fev1Improvement" />
      <el-table-column label="PEF舒张前" align="center" prop="pefPre" />
      <el-table-column label="MMEF75/25舒张前" align="center" prop="mmef7525Pre" />
      <el-table-column label="MEF75舒张前" align="center" prop="mef75Pre" />
      <el-table-column label="MEF50舒张前" align="center" prop="mef50Pre" />
      <el-table-column label="MEF25舒张前" align="center" prop="mef25Pre" />
      <el-table-column label="PEF舒张后" align="center" prop="pefPost" />
      <el-table-column label="MMEF75/25舒张后" align="center" prop="mmef7525Post" />
      <el-table-column label="MEF75舒张后" align="center" prop="mef75Post" />
      <el-table-column label="MEF50舒张后" align="center" prop="mef50Post" />
      <el-table-column label="MEF25舒张后" align="center" prop="mef25Post" />
      <el-table-column label="弥散功能DLCO-SB" align="center" prop="dlcoSbPercent" />
      <el-table-column label="肺总量TLC-SB" align="center" prop="tlcSbPercent" />
      <el-table-column label="残气RV-SB" align="center" prop="rvSbPercent" />
      <el-table-column label="Z5舒张前" align="center" prop="z5Pre" />
      <el-table-column label="R5舒张前" align="center" prop="r5Pre" />
      <el-table-column label="R20舒张前" align="center" prop="r20Pre" />
      <el-table-column label="X5舒张前" align="center" prop="x5Pre" />
      <el-table-column label="共振频率" align="center" prop="resonantFrequency" />
      <el-table-column label="Z5舒张后" align="center" prop="z5Post" />
      <el-table-column label="R5舒张后" align="center" prop="r5Post" />
      <el-table-column label="R20舒张后" align="center" prop="r20Post" />
      <el-table-column label="X5舒张后" align="center" prop="x5Post" />
      <el-table-column label="创建人姓名" align="center" prop="createdBy" />
      <el-table-column label="创建人部门" align="center" prop="creatorDepartment" />
      <el-table-column label="创建时间" align="center" prop="createdAt" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.createdAt, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="更新时间" align="center" prop="updatedAt" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.updatedAt, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="最后更新人姓名" align="center" prop="updatedBy" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['hospital:hospital_data:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['hospital:hospital_data:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>
    
    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改医院患者数据对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="科室" prop="department">
          <el-input v-model="form.department" placeholder="请输入科室" />
        </el-form-item>
        <el-form-item label="床号" prop="bedNumber">
          <el-input v-model="form.bedNumber" placeholder="请输入床号" />
        </el-form-item>
        <el-form-item label="患者姓名" prop="patientName">
          <el-input v-model="form.patientName" placeholder="请输入患者姓名" />
        </el-form-item>
        <el-form-item label="住院号" prop="hospitalNumber">
          <el-input v-model="form.hospitalNumber" placeholder="请输入住院号" />
        </el-form-item>
        <el-form-item label="性别" prop="gender">
          <el-input v-model="form.gender" placeholder="请输入性别" />
        </el-form-item>
        <el-form-item label="年龄" prop="age">
          <el-input v-model="form.age" placeholder="请输入年龄" />
        </el-form-item>
        <el-form-item label="民族" prop="ethnicity">
          <el-input v-model="form.ethnicity" placeholder="请输入民族" />
        </el-form-item>
        <el-form-item label="文化程度" prop="educationLevel">
          <el-input v-model="form.educationLevel" placeholder="请输入文化程度" />
        </el-form-item>
        <el-form-item label="肺功能测试号或测试日期" prop="pulmonaryTestNumber">
          <el-input v-model="form.pulmonaryTestNumber" placeholder="请输入肺功能测试号或测试日期" />
        </el-form-item>
        <el-form-item label="电话号码" prop="phoneNumber">
          <el-input v-model="form.phoneNumber" placeholder="请输入电话号码" />
        </el-form-item>
        <el-form-item label="现地址" prop="currentAddress">
          <el-input v-model="form.currentAddress" placeholder="请输入现地址" />
        </el-form-item>
        <el-form-item label="身高" prop="height">
          <el-input v-model="form.height" placeholder="请输入身高" />
        </el-form-item>
        <el-form-item label="体重" prop="weight">
          <el-input v-model="form.weight" placeholder="请输入体重" />
        </el-form-item>
        <el-form-item label="BMI指数=体重/(身高*身高)" prop="bmi">
          <el-input v-model="form.bmi" placeholder="请输入BMI指数=体重/(身高*身高)" />
        </el-form-item>
        <el-form-item label="分期(正常、PRISm、COPD稳定期、COPD急性加重期)" prop="diseaseStage">
          <el-input v-model="form.diseaseStage" placeholder="请输入分期(正常、PRISm、COPD稳定期、COPD急性加重期)" />
        </el-form-item>
        <el-form-item label="吸烟详情" prop="smokingDetails">
          <el-input v-model="form.smokingDetails" placeholder="请输入吸烟详情" />
        </el-form-item>
        <el-form-item label="家族史" prop="familyHistory">
          <el-input v-model="form.familyHistory" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="职业" prop="occupation">
          <el-input v-model="form.occupation" placeholder="请输入职业" />
        </el-form-item>
        <el-form-item label="既往史" prop="medicalHistory">
          <el-input v-model="form.medicalHistory" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="入院诊断" prop="admissionDiagnosis">
          <el-input v-model="form.admissionDiagnosis" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="出院诊断" prop="dischargeDiagnosis">
          <el-input v-model="form.dischargeDiagnosis" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="住院费用" prop="hospitalizationCost">
          <el-input v-model="form.hospitalizationCost" placeholder="请输入住院费用" />
        </el-form-item>
        <el-form-item label="住院天数" prop="hospitalizationDays">
          <el-input v-model="form.hospitalizationDays" placeholder="请输入住院天数" />
        </el-form-item>
        <el-form-item label="症状" prop="symptoms">
          <el-input v-model="form.symptoms" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="过敏史" prop="allergyHistory">
          <el-input v-model="form.allergyHistory" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="收缩压" prop="systolicPressure">
          <el-input v-model="form.systolicPressure" placeholder="请输入收缩压" />
        </el-form-item>
        <el-form-item label="舒张压" prop="diastolicPressure">
          <el-input v-model="form.diastolicPressure" placeholder="请输入舒张压" />
        </el-form-item>
        <el-form-item label="脉搏" prop="pulseRate">
          <el-input v-model="form.pulseRate" placeholder="请输入脉搏" />
        </el-form-item>
        <el-form-item label="呼吸" prop="respiratoryRate">
          <el-input v-model="form.respiratoryRate" placeholder="请输入呼吸" />
        </el-form-item>
        <el-form-item label="体温" prop="bodyTemperature">
          <el-input v-model="form.bodyTemperature" placeholder="请输入体温" />
        </el-form-item>
        <el-form-item label="血糖" prop="bloodGlucose">
          <el-input v-model="form.bloodGlucose" placeholder="请输入血糖" />
        </el-form-item>
        <el-form-item label="抗生素治疗" prop="antibiotics">
          <el-input v-model="form.antibiotics" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="雾化用药" prop="nebulizationDrugs">
          <el-input v-model="form.nebulizationDrugs" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="胸部CT结果" prop="chestCt">
          <el-input v-model="form.chestCt" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="肝、胆、胰、脾等彩超结果" prop="ultrasoundResults">
          <el-input v-model="form.ultrasoundResults" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="心脏彩超结果" prop="cardiacUltrasound">
          <el-input v-model="form.cardiacUltrasound" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="心电图结果" prop="ecgResults">
          <el-input v-model="form.ecgResults" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="其他检查结果" prop="otherExaminations">
          <el-input v-model="form.otherExaminations" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="PH值" prop="ph">
          <el-input v-model="form.ph" placeholder="请输入PH值" />
        </el-form-item>
        <el-form-item label="PaCO2" prop="paco2">
          <el-input v-model="form.paco2" placeholder="请输入PaCO2" />
        </el-form-item>
        <el-form-item label="PaO2" prop="pao2">
          <el-input v-model="form.pao2" placeholder="请输入PaO2" />
        </el-form-item>
        <el-form-item label="HCO3-" prop="hco3">
          <el-input v-model="form.hco3" placeholder="请输入HCO3-" />
        </el-form-item>
        <el-form-item label="BE" prop="be">
          <el-input v-model="form.be" placeholder="请输入BE" />
        </el-form-item>
        <el-form-item label="吸氧浓度" prop="oxygenConcentration">
          <el-input v-model="form.oxygenConcentration" placeholder="请输入吸氧浓度" />
        </el-form-item>
        <el-form-item label="白细胞" prop="wbc">
          <el-input v-model="form.wbc" placeholder="请输入白细胞" />
        </el-form-item>
        <el-form-item label="红细胞" prop="rbc">
          <el-input v-model="form.rbc" placeholder="请输入红细胞" />
        </el-form-item>
        <el-form-item label="血红蛋白" prop="hemoglobin">
          <el-input v-model="form.hemoglobin" placeholder="请输入血红蛋白" />
        </el-form-item>
        <el-form-item label="血小板" prop="platelets">
          <el-input v-model="form.platelets" placeholder="请输入血小板" />
        </el-form-item>
        <el-form-item label="淋巴细胞百分数" prop="lymphocytePercentage">
          <el-input v-model="form.lymphocytePercentage" placeholder="请输入淋巴细胞百分数" />
        </el-form-item>
        <el-form-item label="单核细胞百分数" prop="monocytePercentage">
          <el-input v-model="form.monocytePercentage" placeholder="请输入单核细胞百分数" />
        </el-form-item>
        <el-form-item label="嗜中性粒细胞百分数" prop="neutrophilPercentage">
          <el-input v-model="form.neutrophilPercentage" placeholder="请输入嗜中性粒细胞百分数" />
        </el-form-item>
        <el-form-item label="嗜酸性粒细胞百分数" prop="eosinophilPercentage">
          <el-input v-model="form.eosinophilPercentage" placeholder="请输入嗜酸性粒细胞百分数" />
        </el-form-item>
        <el-form-item label="淋巴细胞绝对值" prop="lymphocyteAbsolute">
          <el-input v-model="form.lymphocyteAbsolute" placeholder="请输入淋巴细胞绝对值" />
        </el-form-item>
        <el-form-item label="单核细胞绝对值" prop="monocyteAbsolute">
          <el-input v-model="form.monocyteAbsolute" placeholder="请输入单核细胞绝对值" />
        </el-form-item>
        <el-form-item label="嗜中性粒细胞绝对值" prop="neutrophilAbsolute">
          <el-input v-model="form.neutrophilAbsolute" placeholder="请输入嗜中性粒细胞绝对值" />
        </el-form-item>
        <el-form-item label="嗜酸性粒细胞绝对值" prop="eosinophilAbsolute">
          <el-input v-model="form.eosinophilAbsolute" placeholder="请输入嗜酸性粒细胞绝对值" />
        </el-form-item>
        <el-form-item label="高密度脂蛋白胆固醇" prop="hdl">
          <el-input v-model="form.hdl" placeholder="请输入高密度脂蛋白胆固醇" />
        </el-form-item>
        <el-form-item label="低密度脂蛋白胆固醇" prop="ldl">
          <el-input v-model="form.ldl" placeholder="请输入低密度脂蛋白胆固醇" />
        </el-form-item>
        <el-form-item label="总胆固醇" prop="totalCholesterol">
          <el-input v-model="form.totalCholesterol" placeholder="请输入总胆固醇" />
        </el-form-item>
        <el-form-item label="甘油三酯" prop="triglycerides">
          <el-input v-model="form.triglycerides" placeholder="请输入甘油三酯" />
        </el-form-item>
        <el-form-item label="肌酸激酶" prop="creatineKinase">
          <el-input v-model="form.creatineKinase" placeholder="请输入肌酸激酶" />
        </el-form-item>
        <el-form-item label="肌酸激酶同工酶" prop="ckMb">
          <el-input v-model="form.ckMb" placeholder="请输入肌酸激酶同工酶" />
        </el-form-item>
        <el-form-item label="乳酸脱氢酶" prop="ldh">
          <el-input v-model="form.ldh" placeholder="请输入乳酸脱氢酶" />
        </el-form-item>
        <el-form-item label="α-羟丁酸脱氢酶" prop="hbdh">
          <el-input v-model="form.hbdh" placeholder="请输入α-羟丁酸脱氢酶" />
        </el-form-item>
        <el-form-item label="高敏肌钙蛋白Ⅰ" prop="troponin">
          <el-input v-model="form.troponin" placeholder="请输入高敏肌钙蛋白Ⅰ" />
        </el-form-item>
        <el-form-item label="肌酐" prop="creatinine">
          <el-input v-model="form.creatinine" placeholder="请输入肌酐" />
        </el-form-item>
        <el-form-item label="尿酸" prop="uricAcid">
          <el-input v-model="form.uricAcid" placeholder="请输入尿酸" />
        </el-form-item>
        <el-form-item label="尿素" prop="urea">
          <el-input v-model="form.urea" placeholder="请输入尿素" />
        </el-form-item>
        <el-form-item label="胱抑素C" prop="cystatinC">
          <el-input v-model="form.cystatinC" placeholder="请输入胱抑素C" />
        </el-form-item>
        <el-form-item label="肾小球滤过率" prop="gfr">
          <el-input v-model="form.gfr" placeholder="请输入肾小球滤过率" />
        </el-form-item>
        <el-form-item label="天门冬氨酸氨基转移酶" prop="ast">
          <el-input v-model="form.ast" placeholder="请输入天门冬氨酸氨基转移酶" />
        </el-form-item>
        <el-form-item label="丙氨酸氨基转移酶" prop="alt">
          <el-input v-model="form.alt" placeholder="请输入丙氨酸氨基转移酶" />
        </el-form-item>
        <el-form-item label="总胆红素" prop="totalBilirubin">
          <el-input v-model="form.totalBilirubin" placeholder="请输入总胆红素" />
        </el-form-item>
        <el-form-item label="总蛋白" prop="totalProtein">
          <el-input v-model="form.totalProtein" placeholder="请输入总蛋白" />
        </el-form-item>
        <el-form-item label="白蛋白" prop="albumin">
          <el-input v-model="form.albumin" placeholder="请输入白蛋白" />
        </el-form-item>
        <el-form-item label="白介素-6" prop="il6">
          <el-input v-model="form.il6" placeholder="请输入白介素-6" />
        </el-form-item>
        <el-form-item label="降钙素" prop="calcitonin">
          <el-input v-model="form.calcitonin" placeholder="请输入降钙素" />
        </el-form-item>
        <el-form-item label="BNP" prop="bnp">
          <el-input v-model="form.bnp" placeholder="请输入BNP" />
        </el-form-item>
        <el-form-item label="C-反应蛋白" prop="crp">
          <el-input v-model="form.crp" placeholder="请输入C-反应蛋白" />
        </el-form-item>
        <el-form-item label="血沉" prop="esr">
          <el-input v-model="form.esr" placeholder="请输入血沉" />
        </el-form-item>
        <el-form-item label="凝血酶原时间" prop="pt">
          <el-input v-model="form.pt" placeholder="请输入凝血酶原时间" />
        </el-form-item>
        <el-form-item label="活化部分凝血酶原时间" prop="aptt">
          <el-input v-model="form.aptt" placeholder="请输入活化部分凝血酶原时间" />
        </el-form-item>
        <el-form-item label="凝血酶时间" prop="tt">
          <el-input v-model="form.tt" placeholder="请输入凝血酶时间" />
        </el-form-item>
        <el-form-item label="国际标准化比值" prop="inr">
          <el-input v-model="form.inr" placeholder="请输入国际标准化比值" />
        </el-form-item>
        <el-form-item label="纤维蛋白原" prop="fibrinogen">
          <el-input v-model="form.fibrinogen" placeholder="请输入纤维蛋白原" />
        </el-form-item>
        <el-form-item label="D-二聚体" prop="dDimer">
          <el-input v-model="form.dDimer" placeholder="请输入D-二聚体" />
        </el-form-item>
        <el-form-item label="痰培养结果" prop="sputumCulture">
          <el-input v-model="form.sputumCulture" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="病理检查结果" prop="pathologyExamination">
          <el-input v-model="form.pathologyExamination" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="呼吸困难量表评分" prop="mmrcScore">
          <el-input v-model="form.mmrcScore" placeholder="请输入呼吸困难量表评分" />
        </el-form-item>
        <el-form-item label="日常生活量表评分" prop="dailyLivingScore">
          <el-input v-model="form.dailyLivingScore" placeholder="请输入日常生活量表评分" />
        </el-form-item>
        <el-form-item label="日常生活量表名称" prop="dailyLivingScale">
          <el-input v-model="form.dailyLivingScale" placeholder="请输入日常生活量表名称" />
        </el-form-item>
        <el-form-item label="跌倒风险评分" prop="fallRiskScore">
          <el-input v-model="form.fallRiskScore" placeholder="请输入跌倒风险评分" />
        </el-form-item>
        <el-form-item label="跌倒评分表名称" prop="fallRiskScale">
          <el-input v-model="form.fallRiskScale" placeholder="请输入跌倒评分表名称" />
        </el-form-item>
        <el-form-item label="压疮风险评分" prop="pressureUlcerScore">
          <el-input v-model="form.pressureUlcerScore" placeholder="请输入压疮风险评分" />
        </el-form-item>
        <el-form-item label="压疮评分表名称" prop="pressureUlcerScale">
          <el-input v-model="form.pressureUlcerScale" placeholder="请输入压疮评分表名称" />
        </el-form-item>
        <el-form-item label="FEV1舒张前" prop="fev1Pre">
          <el-input v-model="form.fev1Pre" placeholder="请输入FEV1舒张前" />
        </el-form-item>
        <el-form-item label="FEV1舒张前" prop="fev1PrePercent">
          <el-input v-model="form.fev1PrePercent" placeholder="请输入FEV1舒张前" />
        </el-form-item>
        <el-form-item label="FVC舒张前" prop="fvcPre">
          <el-input v-model="form.fvcPre" placeholder="请输入FVC舒张前" />
        </el-form-item>
        <el-form-item label="FVC舒张前" prop="fvcPrePercent">
          <el-input v-model="form.fvcPrePercent" placeholder="请输入FVC舒张前" />
        </el-form-item>
        <el-form-item label="FEV1/FVC舒张前" prop="fev1FvcRatioPre">
          <el-input v-model="form.fev1FvcRatioPre" placeholder="请输入FEV1/FVC舒张前" />
        </el-form-item>
        <el-form-item label="FEV1/FVC舒张前" prop="fev1FvcRatioPrePercent">
          <el-input v-model="form.fev1FvcRatioPrePercent" placeholder="请输入FEV1/FVC舒张前" />
        </el-form-item>
        <el-form-item label="FEV1舒张后" prop="fev1Post">
          <el-input v-model="form.fev1Post" placeholder="请输入FEV1舒张后" />
        </el-form-item>
        <el-form-item label="FEV1舒张后" prop="fev1PostPercent">
          <el-input v-model="form.fev1PostPercent" placeholder="请输入FEV1舒张后" />
        </el-form-item>
        <el-form-item label="FVC舒张后" prop="fvcPost">
          <el-input v-model="form.fvcPost" placeholder="请输入FVC舒张后" />
        </el-form-item>
        <el-form-item label="FVC舒张后" prop="fvcPostPercent">
          <el-input v-model="form.fvcPostPercent" placeholder="请输入FVC舒张后" />
        </el-form-item>
        <el-form-item label="FEV1/FVC舒张后" prop="fev1FvcRatioPost">
          <el-input v-model="form.fev1FvcRatioPost" placeholder="请输入FEV1/FVC舒张后" />
        </el-form-item>
        <el-form-item label="FEV1/FVC舒张后" prop="fev1FvcRatioPostPercent">
          <el-input v-model="form.fev1FvcRatioPostPercent" placeholder="请输入FEV1/FVC舒张后" />
        </el-form-item>
        <el-form-item label="FVC改善率" prop="fvcImprovement">
          <el-input v-model="form.fvcImprovement" placeholder="请输入FVC改善率" />
        </el-form-item>
        <el-form-item label="FEV1改善率" prop="fev1Improvement">
          <el-input v-model="form.fev1Improvement" placeholder="请输入FEV1改善率" />
        </el-form-item>
        <el-form-item label="PEF舒张前" prop="pefPre">
          <el-input v-model="form.pefPre" placeholder="请输入PEF舒张前" />
        </el-form-item>
        <el-form-item label="MMEF75/25舒张前" prop="mmef7525Pre">
          <el-input v-model="form.mmef7525Pre" placeholder="请输入MMEF75/25舒张前" />
        </el-form-item>
        <el-form-item label="MEF75舒张前" prop="mef75Pre">
          <el-input v-model="form.mef75Pre" placeholder="请输入MEF75舒张前" />
        </el-form-item>
        <el-form-item label="MEF50舒张前" prop="mef50Pre">
          <el-input v-model="form.mef50Pre" placeholder="请输入MEF50舒张前" />
        </el-form-item>
        <el-form-item label="MEF25舒张前" prop="mef25Pre">
          <el-input v-model="form.mef25Pre" placeholder="请输入MEF25舒张前" />
        </el-form-item>
        <el-form-item label="PEF舒张后" prop="pefPost">
          <el-input v-model="form.pefPost" placeholder="请输入PEF舒张后" />
        </el-form-item>
        <el-form-item label="MMEF75/25舒张后" prop="mmef7525Post">
          <el-input v-model="form.mmef7525Post" placeholder="请输入MMEF75/25舒张后" />
        </el-form-item>
        <el-form-item label="MEF75舒张后" prop="mef75Post">
          <el-input v-model="form.mef75Post" placeholder="请输入MEF75舒张后" />
        </el-form-item>
        <el-form-item label="MEF50舒张后" prop="mef50Post">
          <el-input v-model="form.mef50Post" placeholder="请输入MEF50舒张后" />
        </el-form-item>
        <el-form-item label="MEF25舒张后" prop="mef25Post">
          <el-input v-model="form.mef25Post" placeholder="请输入MEF25舒张后" />
        </el-form-item>
        <el-form-item label="弥散功能DLCO-SB" prop="dlcoSbPercent">
          <el-input v-model="form.dlcoSbPercent" placeholder="请输入弥散功能DLCO-SB" />
        </el-form-item>
        <el-form-item label="肺总量TLC-SB" prop="tlcSbPercent">
          <el-input v-model="form.tlcSbPercent" placeholder="请输入肺总量TLC-SB" />
        </el-form-item>
        <el-form-item label="残气RV-SB" prop="rvSbPercent">
          <el-input v-model="form.rvSbPercent" placeholder="请输入残气RV-SB" />
        </el-form-item>
        <el-form-item label="Z5舒张前" prop="z5Pre">
          <el-input v-model="form.z5Pre" placeholder="请输入Z5舒张前" />
        </el-form-item>
        <el-form-item label="R5舒张前" prop="r5Pre">
          <el-input v-model="form.r5Pre" placeholder="请输入R5舒张前" />
        </el-form-item>
        <el-form-item label="R20舒张前" prop="r20Pre">
          <el-input v-model="form.r20Pre" placeholder="请输入R20舒张前" />
        </el-form-item>
        <el-form-item label="X5舒张前" prop="x5Pre">
          <el-input v-model="form.x5Pre" placeholder="请输入X5舒张前" />
        </el-form-item>
        <el-form-item label="共振频率" prop="resonantFrequency">
          <el-input v-model="form.resonantFrequency" placeholder="请输入共振频率" />
        </el-form-item>
        <el-form-item label="Z5舒张后" prop="z5Post">
          <el-input v-model="form.z5Post" placeholder="请输入Z5舒张后" />
        </el-form-item>
        <el-form-item label="R5舒张后" prop="r5Post">
          <el-input v-model="form.r5Post" placeholder="请输入R5舒张后" />
        </el-form-item>
        <el-form-item label="R20舒张后" prop="r20Post">
          <el-input v-model="form.r20Post" placeholder="请输入R20舒张后" />
        </el-form-item>
        <el-form-item label="X5舒张后" prop="x5Post">
          <el-input v-model="form.x5Post" placeholder="请输入X5舒张后" />
        </el-form-item>
        <el-form-item label="创建人姓名" prop="createdBy">
          <el-input v-model="form.createdBy" placeholder="请输入创建人姓名" />
        </el-form-item>
        <el-form-item label="创建人部门" prop="creatorDepartment">
          <el-input v-model="form.creatorDepartment" placeholder="请输入创建人部门" />
        </el-form-item>
        <el-form-item label="创建时间" prop="createdAt">
          <el-date-picker clearable
            v-model="form.createdAt"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择创建时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="更新时间" prop="updatedAt">
          <el-date-picker clearable
            v-model="form.updatedAt"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择更新时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="最后更新人姓名" prop="updatedBy">
          <el-input v-model="form.updatedBy" placeholder="请输入最后更新人姓名" />
        </el-form-item>
        <el-form-item label="用户ID" prop="userId">
          <el-input v-model="form.userId" placeholder="请输入用户ID" />
        </el-form-item>
        <el-form-item label="部门ID" prop="deptId">
          <el-input v-model="form.deptId" placeholder="请输入部门ID" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listHospital_data, getHospital_data, delHospital_data, addHospital_data, updateHospital_data } from "@/api/hospital/hospital_data";

export default {
  name: "Hospital_data",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 医院患者数据表格数据
      hospital_dataList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        department: null,
        bedNumber: null,
        patientName: null,
        hospitalNumber: null,
        gender: null,
        age: null,
        ethnicity: null,
        educationLevel: null,
        pulmonaryTestNumber: null,
        phoneNumber: null,
        currentAddress: null,
        height: null,
        weight: null,
        bmi: null,
        diseaseStage: null,
        smokingStatus: null,
        smokingDetails: null,
        drinkingStatus: null,
        familyHistory: null,
        occupation: null,
        medicalHistory: null,
        admissionDiagnosis: null,
        dischargeDiagnosis: null,
        hospitalizationCost: null,
        hospitalizationDays: null,
        symptoms: null,
        allergyHistory: null,
        systolicPressure: null,
        diastolicPressure: null,
        pulseRate: null,
        respiratoryRate: null,
        bodyTemperature: null,
        bloodGlucose: null,
        antibiotics: null,
        nebulizationDrugs: null,
        chestCt: null,
        ultrasoundResults: null,
        cardiacUltrasound: null,
        ecgResults: null,
        otherExaminations: null,
        ph: null,
        paco2: null,
        pao2: null,
        hco3: null,
        be: null,
        oxygenConcentration: null,
        wbc: null,
        rbc: null,
        hemoglobin: null,
        platelets: null,
        lymphocytePercentage: null,
        monocytePercentage: null,
        neutrophilPercentage: null,
        eosinophilPercentage: null,
        lymphocyteAbsolute: null,
        monocyteAbsolute: null,
        neutrophilAbsolute: null,
        eosinophilAbsolute: null,
        hdl: null,
        ldl: null,
        totalCholesterol: null,
        triglycerides: null,
        creatineKinase: null,
        ckMb: null,
        ldh: null,
        hbdh: null,
        troponin: null,
        creatinine: null,
        uricAcid: null,
        urea: null,
        cystatinC: null,
        gfr: null,
        ast: null,
        alt: null,
        totalBilirubin: null,
        totalProtein: null,
        albumin: null,
        il6: null,
        calcitonin: null,
        bnp: null,
        crp: null,
        esr: null,
        pt: null,
        aptt: null,
        tt: null,
        inr: null,
        fibrinogen: null,
        dDimer: null,
        sputumCulture: null,
        pathologyExamination: null,
        mmrcScore: null,
        dailyLivingScore: null,
        dailyLivingScale: null,
        fallRiskScore: null,
        fallRiskScale: null,
        pressureUlcerScore: null,
        pressureUlcerScale: null,
        fev1Pre: null,
        fev1PrePercent: null,
        fvcPre: null,
        fvcPrePercent: null,
        fev1FvcRatioPre: null,
        fev1FvcRatioPrePercent: null,
        fev1Post: null,
        fev1PostPercent: null,
        fvcPost: null,
        fvcPostPercent: null,
        fev1FvcRatioPost: null,
        fev1FvcRatioPostPercent: null,
        fvcImprovement: null,
        fev1Improvement: null,
        pefPre: null,
        mmef7525Pre: null,
        mef75Pre: null,
        mef50Pre: null,
        mef25Pre: null,
        pefPost: null,
        mmef7525Post: null,
        mef75Post: null,
        mef50Post: null,
        mef25Post: null,
        dlcoSbPercent: null,
        tlcSbPercent: null,
        rvSbPercent: null,
        z5Pre: null,
        r5Pre: null,
        r20Pre: null,
        x5Pre: null,
        resonantFrequency: null,
        z5Post: null,
        r5Post: null,
        r20Post: null,
        x5Post: null,
        createdBy: null,
        creatorDepartment: null,
        createdAt: null,
        updatedAt: null,
        updatedBy: null,
        userId: null,
        deptId: null
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询医院患者数据列表 */
    getList() {
      this.loading = true;
      listHospital_data(this.queryParams).then(response => {
        this.hospital_dataList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        department: null,
        bedNumber: null,
        patientName: null,
        hospitalNumber: null,
        gender: null,
        age: null,
        ethnicity: null,
        educationLevel: null,
        pulmonaryTestNumber: null,
        phoneNumber: null,
        currentAddress: null,
        height: null,
        weight: null,
        bmi: null,
        diseaseStage: null,
        smokingStatus: null,
        smokingDetails: null,
        drinkingStatus: null,
        familyHistory: null,
        occupation: null,
        medicalHistory: null,
        admissionDiagnosis: null,
        dischargeDiagnosis: null,
        hospitalizationCost: null,
        hospitalizationDays: null,
        symptoms: null,
        allergyHistory: null,
        systolicPressure: null,
        diastolicPressure: null,
        pulseRate: null,
        respiratoryRate: null,
        bodyTemperature: null,
        bloodGlucose: null,
        antibiotics: null,
        nebulizationDrugs: null,
        chestCt: null,
        ultrasoundResults: null,
        cardiacUltrasound: null,
        ecgResults: null,
        otherExaminations: null,
        ph: null,
        paco2: null,
        pao2: null,
        hco3: null,
        be: null,
        oxygenConcentration: null,
        wbc: null,
        rbc: null,
        hemoglobin: null,
        platelets: null,
        lymphocytePercentage: null,
        monocytePercentage: null,
        neutrophilPercentage: null,
        eosinophilPercentage: null,
        lymphocyteAbsolute: null,
        monocyteAbsolute: null,
        neutrophilAbsolute: null,
        eosinophilAbsolute: null,
        hdl: null,
        ldl: null,
        totalCholesterol: null,
        triglycerides: null,
        creatineKinase: null,
        ckMb: null,
        ldh: null,
        hbdh: null,
        troponin: null,
        creatinine: null,
        uricAcid: null,
        urea: null,
        cystatinC: null,
        gfr: null,
        ast: null,
        alt: null,
        totalBilirubin: null,
        totalProtein: null,
        albumin: null,
        il6: null,
        calcitonin: null,
        bnp: null,
        crp: null,
        esr: null,
        pt: null,
        aptt: null,
        tt: null,
        inr: null,
        fibrinogen: null,
        dDimer: null,
        sputumCulture: null,
        pathologyExamination: null,
        mmrcScore: null,
        dailyLivingScore: null,
        dailyLivingScale: null,
        fallRiskScore: null,
        fallRiskScale: null,
        pressureUlcerScore: null,
        pressureUlcerScale: null,
        fev1Pre: null,
        fev1PrePercent: null,
        fvcPre: null,
        fvcPrePercent: null,
        fev1FvcRatioPre: null,
        fev1FvcRatioPrePercent: null,
        fev1Post: null,
        fev1PostPercent: null,
        fvcPost: null,
        fvcPostPercent: null,
        fev1FvcRatioPost: null,
        fev1FvcRatioPostPercent: null,
        fvcImprovement: null,
        fev1Improvement: null,
        pefPre: null,
        mmef7525Pre: null,
        mef75Pre: null,
        mef50Pre: null,
        mef25Pre: null,
        pefPost: null,
        mmef7525Post: null,
        mef75Post: null,
        mef50Post: null,
        mef25Post: null,
        dlcoSbPercent: null,
        tlcSbPercent: null,
        rvSbPercent: null,
        z5Pre: null,
        r5Pre: null,
        r20Pre: null,
        x5Pre: null,
        resonantFrequency: null,
        z5Post: null,
        r5Post: null,
        r20Post: null,
        x5Post: null,
        createdBy: null,
        creatorDepartment: null,
        createdAt: null,
        updatedAt: null,
        updatedBy: null,
        userId: null,
        deptId: null
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.id)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加医院患者数据";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const id = row.id || this.ids
      getHospital_data(id).then(response => {
        this.form = response.data;
        this.open = true;
        this.title = "修改医院患者数据";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.id != null) {
            updateHospital_data(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addHospital_data(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const ids = row.id || this.ids;
      this.$modal.confirm('是否确认删除医院患者数据编号为"' + ids + '"的数据项？').then(function() {
        return delHospital_data(ids);
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('hospital/hospital_data/export', {
        ...this.queryParams
      }, `hospital_data_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>
